<?php

	#doc
	#	classname:	Menu
	#	scope:		PUBLIC
	#
	#/doc
	
	class CountComent extends CWidget
	{
		#	internal variables
		public $id;
		public $type;	
		#	Constructor
		public function run()
		{
		
		$count = Coments::model()->count('id_post=:id_post AND object=:object',array(':id_post'=>$this->id,':object'=>$this->type));
			
			$this->render('countcoment',array('count'=>$count));
		}
		###	
	
	}
	###

?>